<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        // var age;
        // console.log(age);//undefined 未定义   age没被赋值
        
        console.log(age); //ReferenceError: age is not defined 引用错误   没有声明age这个变量 直接报错
        </script>
</body>
</html>